-- cmd_get_comment_counts
-- Create by cheny3
-- 获取评论数量

function Operation.cmd_get_comment_counts(commentType)
    -- 检查是否在请求时间限制内
    local ret = CommentM.canRequestCommentCount(commentType);
    if ret then
        Communicate.send("CMD_GET_COMMENT_COUNTS", {["type"] = commentType});
    else
        -- 直接抛出事件
        EventMgr.fire(event.UPDATE_COMMENT_COUNT, { ["commentType"] = commentType, });
    end
end
